package com.qzimp.fujiancuo.mapper;

import com.mybatisflex.core.BaseMapper;
import com.qzimp.fujiancuo.entity.Userinfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *  映射层。
 *
 * @author 李欧雯
 * @since 2024-12-20
 */
//定义与数据库交互的方法，用select
public interface UserinfoMapper extends BaseMapper<Userinfo> {
    @Select("SELECT * FROM tb_userinfo WHERE id = #{id}")
    Userinfo selectById(@Param("id") Integer id);
}
